<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        /* .sec-wrapper {
            width: 500px;
            height: 500px;
            background: #bfa;
            border-radius: 50%;
            animation: run 60s;
            /* 用指针的容器来旋转带动指针旋转 * /
        }

        .sec {
            height: 250px;
            width: 4px;
            background-color: red;
            margin: 0 auto;
            /* animation:run 60s; * /
        } */
        .clock {
         
            width: 500px;
            height: 500px;

            margin: 0 auto;
            margin-top: 100px;
            border-radius: 50%;
            /* border: 10px solid black; */
            position: relative;
            background-image: url(./resourse/12img/clock2.jpg);
            background-position: center;
            background-size: 650px;
           background-clip: border-box;

            
        }

        .clock>div {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            margin: auto;
        }

        /* 设置时针 */
        .hour-wrapper {
            height: 60%;
            width: 60%;
            animation: run 43200s linear infinite;
        }

        .hour {
            height: 50%;
            width: 8px;
           background-color: rgb(35, 47, 218);
            margin: 0 auto;
        }

        /* 设置分针 */
        .min-wrapper {
            height: 75%;
            width: 75%;
            animation: run 3600s steps(60) infinite;

        }

        .min {
            height: 50%;
            width: 4px;
    background-color: rgb(23, 228, 115);
            margin: 0 auto;
        }

         /* 设置秒针 */
         .sec-wrapper {
            height: 90%;
            width: 90%;
            animation: run 60s steps(60) infinite;

        }

        .sec {
            height: 50%;
            width: 2px;
            background-color: red;
            margin: 0 auto;    
        }

        @keyframes run {
            from {
                transform: rotateZ(0);
            }

            to {
                transform: rotateZ(360deg);
            }
        }
    </style>
</head>

<body>
    <!-- <div class="sec-wrapper">
    <div class="sec"></div> -->

    <div class="clock">
        <!-- 创建时针 -->
        <div class="hour-wrapper">
            <div class="hour"></div>
        </div>
        <!-- 创建分针 -->
        <div class="min-wrapper">
            <div class="min"></div>
        </div>
        <!-- 创建秒针 -->
        <div class="sec-wrapper">
            <div class="sec"></div>
        </div>

    </div>

    </div>
</body>

</html>